package cn.sns.sample;

import java.util.HashMap;
import java.util.Iterator;

import com.meterware.httpunit.WebResponse;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		HashMap map = new HashMap();
		map.put("aa", "aa");
		map.put("bb", "bb");
		map.put("cc", "cc");
		print(map);

	}

	private static void print(HashMap param) {

		Iterator iterator = param.keySet().iterator();
		String value = "";
		String key = "";

		while (iterator.hasNext()) {
			Object o = iterator.next();
			key = o.toString();
			value = (String) param.get(key);

			System.out.println(key + ":" + value);
		}
	}
}
